﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="DigitalGoodsExample._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Digital Goods Express Checkout ASP.NET Demo</title>

    <script src='https://www.paypalobjects.com/js/external/dg.js' type='text/javascript'></script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
    <a id="DoDirectPaymentSaleLink" href="DirectPayment.aspx?paymentType=Sale">DirectPayment Example</a>
    </div>
    </form>

    <script type="text/javascript">
	var dg = new PAYPAL.apps.DGFlow({
	// the HTML ID of the form submit button which calls setEC
	trigger: 
	"submitBtn"
	});
    </script>

</body>
</html>
